/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.beans;

/**
 *
 * @author Alex
 */
public class NameHandler {
private int total;
private int mes;
private int dia;
private int[] dias = new int[]{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 30, 31};
private String[] meses = new String[]{"", "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"};
String nomb;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
    
  public int getMes() {
        return mes;      
    }

    public void setMes(int mes) {
        this.mes = mes;
        nomb = meses[mes];      
      for(int i=0;i<mes-1;i++){
       total+= dias[i];

   }    

    }

    public int getDia() {
        return dia;
    }

    public void setDia(int dia) {
        this.dia = dia;
    }

    public int[] getDias() {
        return dias;
    }

    public void setDias(int[] dias) {
        this.dias = dias;
    }

    public String[] getMeses() {
        return meses;
    }

    public void setMeses(String[] meses) {
        this.meses = meses;
    }

    public String getNomb() {
        return nomb;
    }

    public void setNomb(String nomb) {
        this.nomb = nomb;
    }
}
